package com.lanzuo.yxd.scanner.scanner.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;

import java.util.List;

/**
 * 消息接收后触发的事件
 */
@Getter
public class MessageReceiveEvent extends ApplicationEvent {

    private final List<String> panelSns;
    Integer lane;
    String scannerIp;
    String scannerPosition;

    public MessageReceiveEvent(Object source, List<String> panelSns, Integer lane,
                               String scannerIp, String scannerPosition) {
        super(source);
        this.lane = lane;
        this.panelSns = panelSns;
        this.scannerIp = scannerIp;
        this.scannerPosition = scannerPosition;
    }

}